package com.shopping.service;

import com.shopping.pojo.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserService {
    public List<User> selectUserByQuery(String userName, int start, int limit);
    public int getUserNum(String userName);
    public User getUserByUserName(String userName);
    public boolean checkTransfereeInfo(String userName,String name,String phone);
    public boolean checkUserNameAndPassword(String userName,String password);
    public boolean insertUser(User user);
    public boolean checkUserName(String UserName);
    public boolean updatePassword(String userName,String password);
    public boolean checkUserNameAndPhone(String userName,String phone);
    public boolean updateUser(User user);
    public boolean updateUserImage(String userName,String userImage);
    public boolean updateJoinBlackList(Integer userId);
    public boolean updateRemoveBlackList(Integer userId);
    public User getUserByUserId(Integer userId);

}
